package com.example.ch44.simplefactory;

public class SimpleLoggerFactory {
    public static Logger getLogger(String name) {
        if (name.equals("file")) {
            return new FileLogger();
        }
        return new ConsoleLogger();
    }
}
